package com.ruoyi.supply.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 广告位对象 t_ad_spot
 * 
 * @author Ryan
 * @date 2025-06-02
 */
@ApiModel("广告位信息")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_ad_spot")
public class AdSpot extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 封面 */
    @Excel(name = "封面")
    @ApiModelProperty("广告位封面图片地址")
    private String cover;

    /** 排序;从大到小排序 */
    @Excel(name = "排序;从大到小排序")
    @ApiModelProperty("排序值，数值越大排名越靠前")
    private Long sort;

    /** 状态;0正常1停用 */
    @Excel(name = "状态;0正常1停用")
    @ApiModelProperty("广告位状态：0 正常，1 停用")
    private String status;

    /** del falg;0存在，2删除 */
    @JsonIgnore
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

}
